package com.qf.day03.homework;

/**
 * 定义方法，三个参数，分别是长，宽，高，计算并输出立方体的表面积
 */
public class HomeWork1 {
    public static void main(String[] args) {
        int area=surfaceArea(1,2,3);
        System.out.println(area);
    }
    private static int surfaceArea(int l,int w,int h){
        int area=2*((l*w)+(l*h)+(w*h));
        return area;
    }
}
